package com.dl.service;

import com.dl.pojo.Page;
import com.dl.pojo.Student;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author DL
 * @create 2021-03-23 14:23
 */
@Service
public interface StudentService {

    //查询总数
    int getTotal();

    //增加
    boolean addStudent(Student student);

    //删除
    boolean deleteStudent(int id);

    //更新
    boolean updateStudent(Student student);

    //查询
    Student queryStudentById(int id);

    //查询全部
    List<Student> queryAllStudent();

    //分页查询
    Page<Student> queryStudentByLimit(int currentPage, int pageSize);

    //根据关键字模糊查询
    Page<Student> queryStudentByKey(String keyWord, int currentPage, int pageSize);

}
